package com.money.coupon.feign;

import com.money.common.dto.es.SkuEsModel;
import com.money.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("search")
public interface SearchFeignService {

    @PostMapping("search/save/saveSkuToEs")
    R saveSkuToEs(@RequestBody List<SkuEsModel> models);

    @RequestMapping("search/save/demo")
    R demo();

}
